package com.joinlabs.mapper;

import java.util.List;

import com.joinlabs.entity.MsgOfZan;

public interface MsgOfZanMapper {
    int deleteByPrimaryKey(Long msgofzanId);

    int insert(MsgOfZan record);

    MsgOfZan selectByPrimaryKey(Long msgofzanId);

    int updateByPrimaryKeySelective(MsgOfZan record);

    int updateByPrimaryKey(MsgOfZan record);
    /**
     * 通过用户id查找当前用户的点赞微博
     * @param userId
     * @return
     */
    List<MsgOfZan> selectZanByUserId(Long userId);
    /**
     * 点赞
     * @param record
     * @return
     */
    int insertSelective(MsgOfZan record);
    
    /**
     * 取消点赞
     * @param record
     * @return
     */
    int deleteZan(MsgOfZan record);

}